package com.zf.yichat.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class TicketsDto {

    // 赠送
    public static final String PURPOSE_TYPE_GIVE = "give";
    // 激活
    public static final String PURPOSE_TYPE_ACTIVATION = "activation";

    private Integer id;
    private String userId;
    private String ticketCode;

    private String ticketType;

    /**
     * 0 未激活 1 已激活
     */
    private Integer status;

    // 激活人
    private String activationUser;
    // 备注
    private String remark;
    // 门票用途 赠送 激活
    private String purposeType;


    // 门票相关信息
    private String ticketName;
    private String ticketDesc;
    // 门票有效期
    private String periodValidity;
    private String ticketAvatar;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTicketName() {
        return ticketName;
    }

    public void setTicketName(String ticketName) {
        this.ticketName = ticketName;
    }

    public String getTicketDesc() {
        return ticketDesc;
    }

    public void setTicketDesc(String ticketDesc) {
        this.ticketDesc = ticketDesc;
    }

    public String getPeriodValidity() {
        return periodValidity;
    }

    public void setPeriodValidity(String periodValidity) {
        this.periodValidity = periodValidity;
    }

    public String getTicketAvatar() {
        return ticketAvatar;
    }

    public void setTicketAvatar(String ticketAvatar) {
        this.ticketAvatar = ticketAvatar;
    }

    /**
     * 激活时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date activationTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;


    public String getPurposeType() {
        return purposeType;
    }

    public void setPurposeType(String purposeType) {
        this.purposeType = purposeType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTicketCode() {
        return ticketCode;
    }

    public void setTicketCode(String ticketCode) {
        this.ticketCode = ticketCode;
    }

    public String getTicketType() {
        return ticketType;
    }

    public void setTicketType(String ticketType) {
        this.ticketType = ticketType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getActivationUser() {
        return activationUser;
    }

    public void setActivationUser(String activationUser) {
        this.activationUser = activationUser;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getActivationTime() {
        return activationTime;
    }

    public void setActivationTime(Date activationTime) {
        this.activationTime = activationTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
